getAction

open fun getAction(@NonNull notification: Notification, actionIndex: Int): NotificationCompat.Action(source)

Get an action on this notification in a backwards compatible manner. Actions were supported from JellyBean (Api level 16) forwards.

Parameters

notification

The notification to inspect.

actionIndex

The index of the action to retrieve.